<td>
    <div class="account">
        帐号: <%= userName%> <span><a href="javascript:void(0)">操作</a></span>
    </div>
    <div class="password">
        密码: *********** <span><a href="javascript:void(0)">修改密码</a></span>
    </div>
</td>
<td>
    <div class="employeeName"><%= realName%> <span><a href="javascript:void(0)">修改员工姓名</a></span></div>
</td>
<td>
    <div class="email">
        <span>电子邮箱: <%= email%></span> <span><a href="javascript:void(0)">修改邮箱</a></span>
    </div>
    <div class="mobile">
        员工电话: <%= mobile%> <span><a href="javascript:void(0)">修改手机号</a></span>
    </div>
</td>
<td>
    <div class="permission" data-user="<%= userName%>">
        <div class="rights">
        <% _.each(permission, function(item) {%>
            <% if(item.bnbName && item.bnbName.length > 0){ %>
            <div class="ritem">
                <div class="rhead">
                        <%= item.bnbName%>
                        <a data-eid=<%=employeeid%> data-bnbId=<%= item.bnbId%> data-bnbName=<%= item.bnbName%> href="javascript:void(0)">保存</a>
                    <!--<span></span>-->
                </div>
                <div class="rcontent">
                    <% var index = 0;%>
                    <% _.each(item.rights, function(right){  %>
                        <% if(right.key === 'dashmgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>前台管理</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>
                        <% if(right.key === 'ordermgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>订单管理</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>
                        <% if(right.key === 'infomgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>民宿信息</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>
                        <% if(right.key === 'roommgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>房价房态</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>

                        <% if(right.key === 'socialmgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>社交管理</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>
                        <% if(right.key === 'customermgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>客人信息</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>
                        <% if(right.key === 'statsmgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>信息统计</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>
                        <% if(right.key === 'settingsmgmt') {%>
                            <% var ischeck = right.value ? 'checked' : ''%>
                            <div class="checkitem"><span>设置管理</span> <input data-eid=<%=employeeid%> data-bnbName=<%= item.bnbName%> data-key=<%=right.key%> type="checkbox" <%= ischeck%>></div>
                        <% } %>

                        <% if(index === 3) {%>
                            <br>
                        <% } %>

                        <% index++; %>
                    <% });%>
                </div>
            </div>
            <% } %>
        <% }); %>
        </div>
        <div class="addMore">
            <span></span>
        </div>
    </div>
</td>